<style scoped>
table {
  display: table;
  border-collapse: separate;
  border-spacing: 2px;
  border-color: grey;
}
.tip-total {
  margin-top: 22px;
}
.tip-total .tip {
  font-size: 18px;
  margin-bottom: 15px;
  display: inline-block;
}
.tip-total .table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.5em;
}
.tip-total .table tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}
.tip-total .table tr td:first-child {
  padding-left: 10px;
}
.tip-total .table tr td {
  color: #333;
}
.tip-total .table tr td {
  padding: 15px;
  max-width: 250px;
  border-top: 1px solid #d8d8d8;
}
</style>
  <!-- 引导页 -->
<template>
  <div class="tip-total">
    <span v-if="title" class="tip">{{title}}</span>
    <slot name="total"></slot>
    <table class="table">
      <tbody>
        <tr>
          <td>
            <slot></slot>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
    }
  }
}
</script>
